-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jennyf/netcore5 #213
Jennyf/netcore5 #213
Conversation
@@ -5,6 +5,6 @@ steps: | |||
- task: UseDotNet@2 | |||
displayName: 'Use .Net Core SDK' | |||
inputs: | |||
version: 3.1.101, 5.0.100-preview.5.20279.10 | |||
version: 5.0.100-preview.5.20279.10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I was suprised that you can have a list there :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's what the documentation says to do. idk. doesn't seem to work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bgavrilMS had to make separate tasks for each TFW
62b3e46
to
4af9b33
Compare
@jmprieur this is ready now. will need to update the release build when the time comes to .net 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! @jennyf19
var configuredJwtOptions = provider.GetService<IConfigureOptions<JwtBearerOptions>>() as ConfigureNamedOptions<JwtBearerOptions>; | ||
|
||
Assert.Equal(_jwtBearerScheme, configuredJwtOptions.Name); | ||
var configuredJwtOptions = provider.GetService<IConfigureOptions<JwtBearerOptions>>() as IConfigureNamedOptions<JwtBearerOptions>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- This is an issue w/.NET 5, it's a
ConfigureNamedOptions<JwtBearerOptions, Microsoft.AspNetCore.Authentication.JwtBearer>
, which is not aConfigureNamedOptions<JwtBearerOptions>. and, Microsoft.AspNetCore.Authentication.JwtBearer
is not a public type.
x.GetType().FullName
"Microsoft.Extensions.Options.ConfigureNamedOptions`2[[Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerOptions, Microsoft.AspNetCore.Authentication.JwtBearer, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[System.IServiceProvider, System.ComponentModel, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]]"
We probably don't need to check the name
, this isn't surfaced by the interface.
* initial commit for net core 5 * update dependencies
* Initial work (does not build) * fix tests (#205) move files to migrationaid folder * AddMicrosoftWebAppCallsApi naming changes (#208) * AddMicrosoftWebAppCallsApi naming changes * fix xml comments * more changes to api surface (#210) * more changes to api surface * fix namespace * add services obsolete file and fix namespace * Fixing one of the samples Co-authored-by: Jean-Marc Prieur <[email protected]> * Jennyf/netcore5 (#213) * initial commit for net core 5 * update dependencies * Proposing to also remove the token decrypt certificate from AddMicrosoftWebAPI (#212) * more changes to api surface * fix namespace * add services obsolete file and fix namespace * Fixing one of the samples proposing to also remove the certificate from the public API of AddMicrosoftProtectedApi. something like the following. * Improving the experience of the MigrationAid when calling AddProtectedWebApi (obsolete), with a decrypt certificate. Updating the tests Co-authored-by: Jenny Ferries <[email protected]> * Initial work (does not build) * fix tests (#205) move files to migrationaid folder * AddMicrosoftWebAppCallsApi naming changes (#208) * AddMicrosoftWebAppCallsApi naming changes * fix xml comments * more changes to api surface (#210) * more changes to api surface * fix namespace * add services obsolete file and fix namespace * Fixing one of the samples Co-authored-by: Jean-Marc Prieur <[email protected]> * Jennyf/netcore5 (#213) * initial commit for net core 5 * update dependencies * Proposing to also remove the token decrypt certificate from AddMicrosoftWebAPI (#212) * more changes to api surface * fix namespace * add services obsolete file and fix namespace * Fixing one of the samples proposing to also remove the certificate from the public API of AddMicrosoftProtectedApi. something like the following. * Improving the experience of the MigrationAid when calling AddProtectedWebApi (obsolete), with a decrypt certificate. Updating the tests Co-authored-by: Jenny Ferries <[email protected]> * Update template-install-dotnet-core.yaml Co-authored-by: Jean-Marc Prieur <[email protected]>
@jmprieur